<template>
  <div>
    <my-table>
        <!--给用户提供插槽，用户填入信息-->
        <template #default="{Arr}">
            <td>{{Arr.id}}</td>
            <td>{{Arr.name}}</td>
            <td>
                <input type="checkbox" :checked=Arr.state>
            </td>
        </template>
    </my-table>
  </div>
</template>

<script>
import MyTable from './MyTable.vue'
export default {
    name:'MyApp',
    components:{
        MyTable
    }

}
</script>

<style>

</style>